"use strict";

/**
 * author:Administrator
 * date:2015/12/2
 * desc: 工具类
 */
var errCodes = require('./errCode.js');
var config = require('../config/index.js');
var tokenRules = config.tokenRules;
var request = require('request');

var __utils = {};
module.exports = __utils;

var __logFlag = true;

/**
 * 日志
 */
function __appLog() {
  if (__logFlag)     return console.log.bind(console);
  else    return function empty() {
  };
}
__utils.appLog = __appLog();


